﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace test_6_17
{
    class Area
    {
        private double height;
        private double foot;
        private double top;
        private double radius;

        public Area(double height, double foot, double top, double radius)
        {
            this.height = height;
            this.foot = foot;
            this.top = top;
            this.radius = radius;
        }
        public String getS(double radius)
        {
            return (radius * radius * 3.14).ToString();
        }
        public String getS(double top,double foot,double height)
        {
            return (((top+foot)*height)/2).ToString();
        }
        public String getS( double foot, double height)
        {
            return (( foot * height) / 2).ToString();
        }
    }
}
